home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / basic / qbfaqr01.zip / DTRON.QRM < prev    next >
Text File  |  1992-06-20  |  1KB  |  33 lines

  1. ===========================================================================
  2.  BBS: PC Connect
  3. Date: 06-18-92 (19:25)             Number: 12571
  4. From: JOHN SNEERINGER              Refer#: 12455
  5.   To: JAMIE KOWINSKY                Recvd: NO  
  6. Subj: COM PORT CLOSINGS              Conf: (11) R-QBasic
  7. ---------------------------------------------------------------------------
  8. -> Please... Someone help... I have QuickBasic 4.5 and I need to talk to
  9. -> someone that knows how to exit to the system without closing the Com
  10. -> port?  Is it possible to do this? Please help!!
  11. -> ....
  12. -> - Jamie Kowinsky
  13.  
  14. Jamie,
  15. You need to patch your QuickBASIC BRUN Module. The instructions on how
  16. to do this have been posted innumerable times on this net.
  17.  
  18. A simple solution is to add the following lines before exiting the .EXE
  19.  
  20. CLOSE #1      ; this is the com port you were using
  21. OUT &H3FC, 3  ; this is for COM 1, and MUST be the next
  22.               ; step after close to force the modem to
  23.               ; keep the DTR up.
  24.  
  25. to use COM2 use &H2FC instead.
  26.  
  27. What really happens is that the close statement will actually drop
  28. DTR, but the next statement will raise the DTR before the CD is lost.
  29.  
  30.  
  31. PCRelay:UEBBS -> #1018 RelayNet (tm)
  32. 4.11             *UEBBS* Utilities Exchange Columbus, Ohio
  33.